package com.lanou3g.ptp.exception;

/**
 * 创建人: 武奇
 * 创建事件: 2019/8/15
 */
public class PtpException extends RuntimeException {

    private int code;

    public PtpException() {
    }

    public PtpException(int code) {
        this(code, null);
    }

    public PtpException(String message) {
        this(0, message);
    }

    public PtpException(int code, String message) {
        super(message);
        this.code = code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public int getCode() {
        return code;
    }
}
